<!DOCTYPE html>
<style>
div {
  width: 100px;
  height: 100px;
  background: orange;
}
div::before {
  content: ":)";
  transform: translateX(20px);
  display: block;
}
</style>
<div></div>
